import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import ElementPlus from "element-plus"; //全局引入
import "element-plus/dist/index.css";
import * as ElIcon from "@element-plus/icons-vue";

import router from "./router/index.js";

const app = createApp(App);

Object.keys(ElIcon).forEach((key) => {
    app.component(key, ElIcon[key]);
});

app.use(ElementPlus);
app.use(router);

app.mount("#app");
